package sg.edu.nus.iss.cerberus.engine;

import sg.edu.nus.iss.cerberus.model.TestGenerationData;

/**
 * A director class for invoking of builder class.
 * 
 * @author Priyanka
 * 
 * */

public class TestClassDirector {

	private TestClassBuilder testBuild=null;

	public TestClassDirector(TestClassBuilder testBuild)
	{
		this.testBuild=testBuild;
	}
	
	public void createTestClass(TestGenerationData testGenData)
	{
		testBuild.generateFixtures(testGenData);
		testBuild.generateSetUpMethod(testGenData);
		testBuild.generateTearDownMethod(testGenData);
		testBuild.generateSetUpBeforeClassMethod(testGenData);
		testBuild.generateTearDownAfterClassMethod(testGenData);		
		testBuild.generateUserMethods(testGenData);
		
	}
}
